import {
  USER_DETAILS,
} from '@/Redux/ActionTypes/UserManagement/UserManagementActionTypes'
import initialState from '@/Redux/initialState';


// eslint-disable-next-line import/no-anonymous-default-export
export default (state = initialState.userManagement, action) => {
  switch (action.type) {
    case USER_DETAILS: {
      let newState = {
        ...state
      };
      newState.user_details = action.user_details
      return newState
    }
    default: {
      return state
    }
  }
}